package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.SessionEntity;
import com.example.demo.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @DESCRIPTION:
 * @AUTOOR: Lee
 * @DATE: 2022年09月18日 3:45
 */
@Mapper
public interface SessionMapper extends BaseMapper<SessionEntity> {
    SessionEntity queryByUserId(@Param("userId") Integer userId);

    UserEntity queryByToken(@Param("sessionId") String sessionId);
}
